package com.jykj.modbus.equipment.service.guard;

import com.jykj.modbus.equipment.dao.EquipmentDao;
import com.jykj.modbus.equipment.dao.EquipmentDataDao;
import com.jykj.modbus.equipment.entity.guard.Equipment;
import com.jykj.modbus.equipment.entity.guard.EquipmentData;
import com.jykj.modbus.equipment.entity.guard.EquipmentMessage;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

public class EquipmentDataServiceGuard {
    @Resource(name = "equipmentDataDao")
    public EquipmentDataDao dao;

    /**************************  基础方法   ***************************/

    /**
     * 保存返回数据单条，主要用于新增
     **/
    @Transactional
    public void saveEquipmentData(EquipmentData obj){
        this.dao.saveEquipmentData(obj);
    }

    /**
     * 修改、更新方法
     */
    @Transactional
    public void updateEquipmentData(EquipmentData obj){
        this.dao.updateEquipmentData(obj);
    }

}
